﻿<!DOCTYPE html>
<html>
    <head>
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1" />
        <meta charset="UTF-8">
        <title>{$site_info.site_name|default=''}</title>
        <meta name="keywords" content="{$site_info.site_seo_keywords|default=''}"/>
        <meta name="description" content="{$site_info.site_seo_description|default=''}">
        <include file="public@head"/>
    </head>

    <body>

        <div class="affair">
            <!--顶部到导航-->
            <div class="nav">
                <div class="nSub div_float">
                  
                        <a href="{:cmf_url('portal/Notice/index')}">
                            <img src="__TMPL__/public/assets/images/gz1.png" />
                            <p>公告动态</p>
                        </a>
                        <a href="{:cmf_url('portal/List/index')}">
                            <img src="__TMPL__/public/assets/images/gz2.png" />
                            <p>制度指南</p>
                        </a>
                        <a>
                            <img src="__TMPL__/public/assets/images/gz3.png" />
                            <p>智慧食堂</p>
                        </a>
                        <a>
                            <img src="__TMPL__/public/assets/images/gz4.png" />
                            <p>智慧停车</p>
                        </a>
                        <if condition="$user_type eq 3">
                        <a href="{:cmf_url('portal/meeting/book')}">
                            <img src="__TMPL__/public/assets/images/gz5.png" />
                            <p>会场管理</p>
                        </a>
                        <elseif condition="$user_type eq 2"/>
                        <a href="{:cmf_url('portal/meeting/book')}">
                            <img src="__TMPL__/public/assets/images/gz5.png" />
                            <p>查看会场</p>
                        </a>
                        <elseif condition="$user_type eq 5"/>
                        <a href="{:cmf_url('portal/meeting/index')}">
                            <img src="__TMPL__/public/assets/images/gz5.png" />
                            <p>预约会场</p>
                        </a>
                        </if>
                        <if condition="$user_type eq 4">
                        <a href="{:cmf_url('repair/List/myRepair')}">
                            <img src="__TMPL__/public/assets/images/gz6.png" />
                            <p>故障报修</p>
                        </a>
                        <else/>
                        <a href="{:cmf_url('repair/List/add')}">
                            <img src="__TMPL__/public/assets/images/gz6.png" />
                            <p>故障报修</p>
                        </a>
                        </if>
                        <a>
                            <img src="__TMPL__/public/assets/images/gz7.png" />
                            <p>办公用品</p>
                        </a>
                        <a href="{:cmf_url('lose/List/index')}">
                            <img src="__TMPL__/public/assets/images/gz8.png" />
                            <p>失物招领</p>
                        </a>
                        <a href="{:cmf_url('portal/message/index')}">
                            <img src="__TMPL__/public/assets/images/gz9.png" />
                            <p>留言诉求</p>
                        </a>
                        <a href="{:cmf_url('portal/quest/index')}">
                            <img src="__TMPL__/public/assets/images/gz10.png" />
                            <p>评价系统</p>
                        </a>
                   
                    
                </div>
            </div>

            <!--工作提醒-->
            <div class="remind">
                <div class="rTil">
                    <img src="__TMPL__/public/assets/images/gztil.png" />
                    <span>工作提醒</span>
                </div>
                <div class="rSub div_float">
                    <php>$num = $num2 = $num3 = 0;</php>
                    <volist name="msg" id="v">
                        <if condition="$v['type'] eq 1">
                            <if condition="$v['isset'] eq ''">
                               <php>$num += 1;</php>
                            </if>
                        <elseif condition="$v['type'] eq 2"/>
                            <if condition="$v['isset'] eq ''">
                                <php>$num2 += 1;</php>
                            </if>
                        <elseif condition="$v['type'] eq 3"/>
                            <if condition="$v['user_id'] eq cmf_get_current_user_id()">
                                <if condition="$v['isset'] eq ''">
                                    <php>$num3 += 1;</php>
                                </if>
                            </if>
                        </if>
                    </volist>
                    <div class="rl gg">
                        <p>工作动态</p>
                        <if condition="$num2 eq 0"><else/><span>{$num2}</span></if>
                    </div>
                    <div class="rl tz">
                        <p>通知公告</p>
                        <if condition="$num eq 0"><else/><span>{$num}</span></if>
                    </div>
                    <div class="rl bx">
                        <p>故障报修</p>
                        <if condition="$num3 eq 0"><else/><span>{$num3}</span></if>
                    </div>
                    
                    <!-- <div class="rl xx">
                        <p>消息</p>
                        <span>3</span>
                    </div> -->
                </div>
                <div class="rCn">
                    <notempty name="msg">
                        <php>
                            $type = ['1'=>"已派单",'2'=>"维修中",'3'=>"已完成",'4'=>"申请完成",'5'=>'拒绝完成'];
                            $status = ['1'=>'预约成功','2'=>"预约不通过"];
                        </php>
                    <volist name="msg" id='v'>
                        <if condition="$v['type'] eq 1">
                        <a href="{:url('portal/notice/detail',array('sel'=>$v['type'],'id'=>$v['object_id'],'msg_id'=>$v['id']))}">
                        <div class="list gg div_float">
                            <img src="__TMPL__/public/assets/images/gzb2.png" />
                            <div class="msg">
                                <p>{$v['content']}<if condition="$v['isset'] eq ''"><span class="new">New</span></if></p>
                                <p>部门：<if condition="$v['department_id'] eq 0">所有部门<else/>
                                {$v['name']}</if></p>
                            </div>
                            <p class="time">{:date('m/d',$v['time'])}</p>
                        </div>
                        </a>
                        <elseif condition="$v['type'] eq 2"/>
                        <a href="{:url('portal/notice/detail',array('sel'=>$v['type'],'id'=>$v['object_id'],'msg_id'=>$v['id']))}">
                        <div class="list gg div_float">
                            <img src="__TMPL__/public/assets/images/gzb1.png" />
                            <div class="msg">
                                <p>{$v['content']}<if condition="$v['isset'] eq ''"><span class="new">New</span></if></p>
                                <p>部门：<if condition="$v['department_id'] eq 0">所有部门<else/>
                                {$v['name']}</if></p>
                            </div>
                            <p class="time">{:date('m/d',$v['time'])}</p>
                        </div>
                        </a>
                        <elseif condition="$v['type'] eq 3"/>
                        <if condition="$v['user_id'] eq cmf_get_current_user_id()">
                            <a href="{:url('repair/list/repair_detail',array('id'=>$v['object_id'],'msg_id'=>$v['id']))}">
                            <div class="list gg div_float">
                                <img src="__TMPL__/public/assets/images/gz6.png" />
                                <div class="msg">
                                    <p>{$v['content']}<if condition="$v['isset'] eq ''"><span class="new">New</span></if></p>
                                    <p>部门：<if condition="$v['department_id'] eq 0"><else/>
                                    {$v['name']}</if></p>
                                </div>
                                <p class="time">{:date('m/d',$v['time'])}</p>
                                <php>
                                    $arr_repair = repair_check($v['object_id']);
                                </php>
                                <p class="hint">维修人员：{$arr_repair['user_login']} {$type[$v['status']]}</p>
                            </div>
                            </a>
                        </if>
                        <elseif condition="$v['type'] eq 4"/>
                        <if condition="$v['user_id'] eq cmf_get_current_user_id()">
                            <a href="{:url('portal/meeting/book',array('sel'=>$v['type'],'msg_id'=>$v['id']))}">
                            <div class="list gg div_float">
                                <img src="__TMPL__/public/assets/images/gz5.png" />
                                <div class="msg">
                                    <p>{$v['content']}<if condition="$v['isset'] eq ''"><span class="new">New</span></if></p>
                                    <p>部门：<if condition="$v['department_id'] eq 0"><else/>
                                    {$v['name']}</if></p>
                                </div>
                                <php>
                                    $arr_meet = meet_check($v['object_id']);
                                </php>
                                <p class="time">{:date('m/d',$v['time'])}</p>
                                <p class="hint">{$status[$arr_meet['status']]}</p>
                            </div>
                            </a>
                        </if>
                        </if>

                        
                    </volist>
                    <else/>
                    <p style="text-align: center;margin-top: 20px;">暂无新消息</p>
                    </notempty>
                    <!-- <div class="list tz div_float">
                        <img src="__TMPL__/public/assets/images/gzb2.png" />
                        <div class="msg">
                            <p>国庆放假时间安排。<span class="new">New</span></p>
                            <p>部门：所有部门</p>
                        </div>
                        <p class="time">06/18</p>
                    </div>
                    <div class="list xx div_float">
                        <img src="__TMPL__/public/assets/images/gz5.png" />
                        <div class="msg">
                            <p>会议中心会场预定。</p>
                            <p>部门：司法部</p>
                        </div>
                        <p class="time">06/18</p>
                        <p class="hint">预定成功</p>
                    </div>
                    <div class="list bx div_float">
                        <img src="__TMPL__/public/assets/images/gz6.png" />
                        <div class="msg">
                            <p>国庆放假时间安排。</p>
                            <p>部门：所有部门</p>
                        </div>
                        <p class="time">06/18</p>
                        <p class="hint">维修人员：小李 已解决</p>
                    </div> -->
                </div>
            </div>

            <!--公共底部-->
            <include file='public@footer'/>

        </div>

    </body>
    <include file='public@scripts'/>

</html>